package com.yc.framework.bizClass;


import com.jfinal.plugin.activerecord.Db;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

//@Component

//@EnableScheduling
//@Slf4j
//public class MyTimer {
//    @Scheduled(cron = "0 0/2 * * * ?")
//    public void timer() {
//        String sql = "select * from t_product";
//        log.info("定时器测试：" + Db.use("yysoft").find(sql));
//    }
//}
